<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of class
 *
 * @author ww
 */
class TaskFormFactoryThree extends ATaskFormFactory{

    public function createTaskForm($type) {
        switch ($type) {
            case 'reviews':
            case 'voting':
            case 'youtube':
            case 'registrations':
            case 'clicks':
            case 'seo':
            case 'subscriber':
            case 'pcc':
                $task_form = new DistributionTaskFormDecorator(new TopTaskFormDecorator(new PlanningTaskFormDecorator(new SimpleTaskFormThree())));
                break;
            case 'twitter':
                $task_form = new DistributionTaskFormDecorator(new TopTaskFormDecorator(new PlanningTaskFormDecorator(new SimpleTaskFormThree())));
                break;
            case 'surfing':
                $task_form = new DistributionTaskFormDecorator(new TopTaskFormDecorator(new PlanningTaskFormDecorator(new SimpleTaskFormThree())));
                break;
            case 'test':
                $task_form = new DistributionTaskFormDecorator(new TopTaskFormDecorator(new PlanningTaskFormDecorator(new SimpleTaskFormThree())));
                break;
            case 'socialnetworks':
                $task_form = new DistributionTaskFormDecorator(new TopTaskFormDecorator(new PlanningTaskFormDecorator(new SimpleTaskFormThree())));
                break;
        }
        return $task_form;
    }
    
}
?>
